import threading
import time, random


# basic threads
def action():
    for i in range(4):
        time.sleep(random.randrange(0, 5))
        print(time.time(), threading.currentThread().getName())


for i in range(5):
    t = threading.Thread(target=action)
    t.start()
